import { visualComponentConfig, visualComponentGroup } from './visual-comp-configs/base-config';
import { pictureBoxCompConfig } from './visual-comp-configs/picture-box-config';
import { audioPlayerCompConfig } from './visual-comp-configs/audio-player-config';
import { pieChartCompConfig } from './visual-comp-configs/pie-chart-config';
import { nightingalePieChartCompConfig } from './visual-comp-configs/nightingale-pie-chart-config';
import { annulusPieChartCompConfig } from './visual-comp-configs/annulus-pie-chart-config';
import { textInputCompConfig } from './visual-comp-configs/text-input-config';
import { videoPlayerCompConfig } from './visual-comp-configs/video-player-config';

/**
 * 组件配置
 */
export const componentGroupConfig = [
  {
    key: visualComponentGroup.base.value,
    label: visualComponentGroup.base.label,
    icon: visualComponentGroup.base.icon,
    children: [
      pictureBoxCompConfig,
      audioPlayerCompConfig,
      textInputCompConfig,
      videoPlayerCompConfig,
    ],
  },
  {
    key: visualComponentGroup.advanced.value,
    label: visualComponentGroup.advanced.label,
    icon: visualComponentGroup.advanced.icon,
    children: [],
  },
  {
    key: visualComponentGroup.chart.value,
    label: visualComponentGroup.chart.label,
    icon: visualComponentGroup.chart.icon,
    children: [pieChartCompConfig, annulusPieChartCompConfig, nightingalePieChartCompConfig],
  },
  {
    key: visualComponentGroup.group.value,
    label: visualComponentGroup.group.label,
    icon: visualComponentGroup.group.icon,
    children: [],
  },
  {
    key: visualComponentGroup.collection.value,
    label: visualComponentGroup.collection.label,
    icon: visualComponentGroup.collection.icon,
    children: [],
  },
];

export { visualComponentGroup, visualComponentConfig };
